include_directories(.)
add_definitions(-Wall -g -O2 -Wno-write-strings)

IF(${MINGW} TRUE)
    link_libraries(alleg)
ELSE()
    exec_program(allegro-config ARGS --libs OUTPUT_VARIABLE ALLEGRO_LIBRARY)
    link_libraries(${ALLEGRO_LIBRARY})
ENDIF(${MINGW} TRUE)


add_executable(ppd
	common.h main.cpp
	background.h background.cpp
	game.h game.cpp gamemisc.cpp
	physics.h physics.cpp
	player.h player.cpp
	view.h view.cpp
	weapon.h weapon.cpp
    databank.h databank.cpp
    sprite.h sprite.cpp
    shot.h shot.cpp
    particle.h particle.cpp
    interface.h interface.cpp
    gui.h gui.cpp
    port.h port.cpp
)

